var mode = process.env.VUE_APP_ENV;
var env = ""; //环境
var websiteUrl = ""; //pc官网
var littlesiteUrl = ""; //移动官网
var merchantUrl = ""; //结算系统
console.log(mode)

if (mode == "test") {
  env = "test"; //测试环境
  websiteUrl = "http://192.168.2.142:30004/"; //pc官网
  littlesiteUrl = "http://192.168.2.142:30005/"; //移动官网
  merchantUrl = "http://192.168.2.142:30001/"; //结算系统
} else if (mode == "pre") {
  env = "pre"; //灰度环境
  websiteUrl = "http://pre.yuncnpay.com/"; //pc官网
  littlesiteUrl = "http://pre.m.yuncnpay.com/"; //移动官网
  merchantUrl = "http://pre.payment.yuncnpay.com/"; //结算系统
} else if (mode == "development") {
  env = "development"; //开发环境
  websiteUrl = `http://${window.location.hostname}:30004/`; //pc官网
  littlesiteUrl = `http://${window.location.hostname}:30005/`; //移动官网
  merchantUrl = `http://${window.location.hostname}:30001/`; //结算系统
} else if (mode == "production") {
  env = "production"; //生产环境
  websiteUrl = "http://yuncnpay.com/"; //pc官网
  littlesiteUrl = "http://m.yuncnpay.com/"; //移动官网
  merchantUrl = "http://payment.yuncnpay.com/"; //结算系统
} else {
  env = "production"; //生产环境
  websiteUrl = "http://yuncnpay.com/"; //pc官网
  littlesiteUrl = "http://m.yuncnpay.com/"; //移动官网
  merchantUrl = "http://payment.yuncnpay.com/"; //结算系统
}

export default {
  env,
  websiteUrl,
  littlesiteUrl,
  merchantUrl,
};
